<?php


namespace app\model\video;


use think\Model;
use think\model\concern\SoftDelete;

class VideoCourseModel extends Model
{
    protected $name = 'video_course';
    protected $autoWriteTimestamp = true;

    use SoftDelete;
    protected $defaultSoftDelete = 0;

    public function node()
    {
        return $this->hasOne(VideoNodeModel::class, 'id', 'node_id')->bind(['node_title' => 'title']);
    }
}